import request from '@/utils/request'



// 查询所有资源分类
export function allResourceCategory (params) {
    return request({
        params,
        url: '/resourceCategory/listAll'
    })
}

// 添加后台资源分类
export function createResourceCategory (data) {
    return request({
        method: 'post',
        data,
        url: '/resourceCategory/create'
    })
}


// 资源分类修改
export function editResourceCategory (id,data) {
    return request({
        method: 'post',
        data,
        url: `/resourceCategory/update/${id}`
    })
}


// 资源分类删除
export function deleteResourceCategory (id) {
    return request({
        method: 'post',
        url: `/resourceCategory/delete/${id}`
    })
}


